import Vue from 'vue'
import Vuex from 'vuex'
import SystemModule from "@/plugins/store/SystemModule";
import UserModule from "@/plugins/store/UserModule";
import AppModule from "@/plugins/store/AppModule";

Vue.use(Vuex)

const store = new Vuex.Store({})

export const systemModule = new SystemModule({ store, name: 'system' })
export const userModule = new UserModule({ store, name: 'user' })
export const appModule = new AppModule({ store, name: 'app' })

export default store
